﻿





#include <array>
#include <map>
#include <bitset>
#include <QJsonObject>
#include "FavoriteAttributesPrivate.h"
#include "../FavoriteAttributes.h"


FavoriteAttributesPrivate::FavoriteAttributesPrivate(FavoriteAttributes* fa)
	: q_ptr(fa)
	, m_favoriteReg({ 1,2,3,4,5,6,7,8,9,
		10,11,12,13,14,15,16,17,18,19,
		20,21,22,23,24,25,26,27,28,29,
		30,31,32,33,
		50,51,52,53,54,55,56,57,58,59,
		60,61,62,63,64,65,66,
		70,71,72,73,74,75,76,77,78,79,
		80,81,82,83,84,85,86,87,88,89,
		90,
		108,109,110,
		121,122,125,126,
		166 })
	, m_needBytes({ std::make_pair(70, sizeof(float)),std::make_pair(72, sizeof(float)),std::make_pair(74, sizeof(float)),
		std::make_pair(109, sizeof(float)),
		std::make_pair(121,sizeof(float)) })
	, m_isOnlyFavoriteMap({
		std::make_pair(1,false), std::make_pair(2,true), std::make_pair(3,true), std::make_pair(4,true), std::make_pair(5,true),
		std::make_pair(6,true), std::make_pair(7,true), std::make_pair(8,true), std::make_pair(9,true),
		std::make_pair(10,true), std::make_pair(11,true), std::make_pair(12,true), std::

		make_pair(13,true), std::make_pair(14,true),
		std::make_pair(15,true), std::make_pair(16,true), std::make_pair(17,true), std::make_pair(18,true), std::make_pair(19,true),
		std::make_pair(20,true), std::make_pair(21,true), std::make_pair(22,true), std::make_pair(23,true), std::make_pair(24,true),
		std::make_pair(25,true), std::make_pair(26,true), std::make_pair(27,true), std::make_pair(28,true), std::make_pair(29,true),
		std::make_pair(30,true), std::make_pair(31,true), std::make_pair(32,true), std::make_pair(33,true),
		std::make_pair(50,true), std::make_pair(51,true), std::make_pair(52,true), std::make_pair(53,true), std::make_pair(54,true), std::make_pair(55,true),
		std::make_pair(56,true), std::make_pair(57,true), std::make_pair(58,true), std::make_pair(59,true),
		std::make_pair(60,true), std::make_pair(61,true), std::make_pair(62,true), std::make_pair(63,true), std::make_pair(64,true), std::make_pair(65,true), std::make_pair(66,false),
		std::make_pair(70, false), std::make_pair(71, false), std::make_pair(72, false),std::make_pair(73, false), std::make_pair(74, false),
		std::make_pair(75, false), std::make_pair(76, false), std::make_pair(77,false), std::make_pair(78, false), std::make_pair(79, false),
		std::make_pair(80, false), std::make_pair(81, false), std::make_pair(82, false), std::make_pair(83, false), std::make_pair(84, false), std::make_pair(85, false),
		std::make_pair(86, false), std::make_pair(87, false), std::make_pair(88, false), std::make_pair(89, false),
		std::make_pair(90, false),
		std::make_pair(108, false),std::make_pair(109, false),std::make_pair(110, false),
		std::make_pair(121, false),std::make_pair(122, false), std::make_pair(125, false), std::make_pair(126, false),
		std::make_pair(166,true) }) {
	Q_ASSERT_X(m_favoriteReg.size() == m_isOnlyFavoriteMap.size(), __FUNCTION__, "m_favoriteReg.size != m_isOnlyFavoriteMap.size");
	for (auto val : m_favoriteReg) {
		m_vm[val] = 0;
	}
}

bool FavoriteAttributesPrivate::isOnlyinFavorite(int address) const {
	return m_isOnlyFavoriteMap.at(address);
}

void FavoriteAttributesPrivate::r1(quint16 value) {
	Q_Q(FavoriteAttributes);
	std::bitset<sizeof(quint16) * 8> old(m_vm.at(1));
	std::bitset<sizeof(quint16) * 8> bits(value);
	if (m_vm.at(1) != value) {
		m_vm[1] = value;
		if (old.test(0) != bits.test(0)) {
			emit q->autoPushChanged();
		}
		if (old.test(1) != bits.test(1)) {
			emit q->autoPullChanged();
		}
		if (old.test(2) != bits.test(2)) {
			emit q->isStartedChanged();
		}
		if (old.test(3) != bits.test(3)) {
			emit q->isPausedChanged();
		}
		if (old.test(4) != bits.test(4)) {
			emit q->isStoppedChanged();
		}
		if (old.test(5) != bits.test(5)) {
			emit q->okStateChanged();
		}
		if (old.test(6) != bits.test(6)) {
			emit q->cancelStateChanged();
		}
		/*if (old.test(9) != bits.test(9)){
			emit q->autoPullChanged();
		}
		if (old.test(10) != bits.test(10)) {
			emit q->autoPullChanged();
		}*/
	}
}

void FavoriteAttributesPrivate::r2(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do1();
	quint16 h = q->do2();
	if (m_vm.at(2) != value) {
		m_vm[2] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do1Changed();
	}
	if (h != (value >> 8)) {
		emit q->do2Changed();
	}
}

void FavoriteAttributesPrivate::r3(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do3();
	quint16 h = q->do4();
	if (m_vm.at(3) != value) {
		m_vm[3] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do3Changed();
	}
	if (h != (value >> 8)) {
		emit q->do4Changed();
	}
}

void FavoriteAttributesPrivate::r4(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do5();
	quint16 h = q->do6();
	if (m_vm.at(4) != value) {
		m_vm[4] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do5Changed();
	}
	if (h != (value >> 8)) {
		emit q->do6Changed();
	}
}

void FavoriteAttributesPrivate::r5(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do7();
	quint16 h = q->do8();
	if (m_vm.at(5) != value) {
		m_vm[5] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do7Changed();
	}
	if (h != (value >> 8)) {
		emit q->do8Changed();
	}
}

void FavoriteAttributesPrivate::r6(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do9();
	quint16 h = q->do10();
	if (m_vm.at(6) != value) {
		m_vm[6] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do9Changed();
	}
	if (h != (value >> 8)) {
		emit q->do10Changed();
	}
}

void FavoriteAttributesPrivate::r7(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do11();
	quint16 h = q->do12();
	if (m_vm.at(7) != value) {
		m_vm[7] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do11Changed();
	}
	if (h != (value >> 8)) {
		emit q->do12Changed();
	}
}

void FavoriteAttributesPrivate::r8(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do13();
	quint16 h = q->do14();
	if (m_vm.at(8) != value) {
		m_vm[8] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do13Changed();
	}
	if (h != (value >> 8)) {
		emit q->do14Changed();
	}
}

void FavoriteAttributesPrivate::r9(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do15();
	quint16 h = q->do16();
	if (m_vm.at(9) != value) {
		m_vm[9] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do15Changed();
	}
	if (h != (value >> 8)) {
		emit q->do16Changed();
	}
}

void FavoriteAttributesPrivate::r10(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do17();
	quint16 h = q->do18();
	if (m_vm.at(10) != value) {
		m_vm[10] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do17Changed();
	}
	if (h != (value >> 8)) {
		emit q->do18Changed();
	}
}

void FavoriteAttributesPrivate::r11(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do19();
	quint16 h = q->do20();
	if (m_vm.at(11) != value) {
		m_vm[11] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do19Changed();
	}
	if (h != (value >> 8)) {
		emit q->do20Changed();
	}
}

void FavoriteAttributesPrivate::r12(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do21();
	quint16 h = q->do22();
	if (m_vm.at(12) != value) {
		m_vm[12] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do21Changed();
	}
	if (h != (value >> 8)) {
		emit q->do22Changed();
	}
}

void FavoriteAttributesPrivate::r13(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do23();
	quint16 h = q->do24();
	if (m_vm.at(13) != value) {
		m_vm[13] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do23Changed();
	}
	if (h != (value >> 8)) {
		emit q->do24Changed();
	}
}

void FavoriteAttributesPrivate::r14(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do25();
	quint16 h = q->do26();
	if (m_vm.at(14) != value) {
		m_vm[14] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do25Changed();
	}
	if (h != (value >> 8)) {
		emit q->do26Changed();
	}
}

void FavoriteAttributesPrivate::r15(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do27();
	quint16 h = q->do28();
	if (m_vm.at(15) != value) {
		m_vm[15] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do27Changed();
	}
	if (h != (value >> 8)) {
		emit q->do28Changed();
	}
}

void FavoriteAttributesPrivate::r16(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do29();
	quint16 h = q->do30();
	if (m_vm.at(16) != value) {
		m_vm[16] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do29Changed();
	}
	if (h != (value >> 8)) {
		emit q->do30Changed();
	}
}

void FavoriteAttributesPrivate::r17(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do31();
	quint16 h = q->do32();
	if (m_vm.at(17) != value) {
		m_vm[17] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do31Changed();
	}
	if (h != (value >> 8)) {
		emit q->do32Changed();
	}
}

void FavoriteAttributesPrivate::r18(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do33();
	quint16 h = q->do34();
	if (m_vm.at(18) != value) {
		m_vm[18] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do33Changed();
	}
	if (h != (value >> 8)) {
		emit q->do34Changed();
	}
}

void FavoriteAttributesPrivate::r19(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do35();
	quint16 h = q->do36();
	if (m_vm.at(19) != value) {
		m_vm[19] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do35Changed();
	}
	if (h != (value >> 8)) {
		emit q->do36Changed();
	}
}

void FavoriteAttributesPrivate::r20(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do37();
	quint16 h = q->do38();
	if (m_vm.at(20) != value) {
		m_vm[20] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do37Changed();
	}
	if (h != (value >> 8)) {
		emit q->do38Changed();
	}
}

void FavoriteAttributesPrivate::r21(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do39();
	quint16 h = q->do40();
	if (m_vm.at(21) != value) {
		m_vm[21] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do39Changed();
	}
	if (h != (value >> 8)) {
		emit q->do40Changed();
	}
}

void FavoriteAttributesPrivate::r22(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do41();
	quint16 h = q->do42();
	if (m_vm.at(22) != value) {
		m_vm[22] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do41Changed();
	}
	if (h != (value >> 8)) {
		emit q->do42Changed();
	}
}

void FavoriteAttributesPrivate::r23(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do43();
	quint16 h = q->do44();
	if (m_vm.at(23) != value) {
		m_vm[23] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do43Changed();
	}
	if (h != (value >> 8)) {
		emit q->do44Changed();
	}
}

void FavoriteAttributesPrivate::r24(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do45();
	quint16 h = q->do46();
	if (m_vm.at(24) != value) {
		m_vm[24] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do45Changed();
	}
	if (h != (value >> 8)) {
		emit q->do46Changed();
	}
}

void FavoriteAttributesPrivate::r25(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do47();
	quint16 h = q->do48();
	if (m_vm.at(25) != value) {
		m_vm[25] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do47Changed();
	}
	if (h != (value >> 8)) {
		emit q->do48Changed();
	}
}

void FavoriteAttributesPrivate::r26(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do49();
	quint16 h = q->do50();
	if (m_vm.at(26) != value) {
		m_vm[26] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do49Changed();
	}
	if (h != (value >> 8)) {
		emit q->do50Changed();
	}
}

void FavoriteAttributesPrivate::r27(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do51();
	quint16 h = q->do52();
	if (m_vm.at(27) != value) {
		m_vm[27] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do51Changed();
	}
	if (h != (value >> 8)) {
		emit q->do52Changed();
	}
}

void FavoriteAttributesPrivate::r28(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do53();
	quint16 h = q->do54();
	if (m_vm.at(28) != value) {
		m_vm[28] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do53Changed();
	}
	if (h != (value >> 8)) {
		emit q->do54Changed();
	}
}

void FavoriteAttributesPrivate::r29(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do55();
	quint16 h = q->do56();
	if (m_vm.at(29) != value) {
		m_vm[29] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do55Changed();
	}
	if (h != (value >> 8)) {
		emit q->do56Changed();
	}
}

void FavoriteAttributesPrivate::r30(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do57();
	quint16 h = q->do58();
	if (m_vm.at(30) != value) {
		m_vm[30] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do57Changed();
	}
	if (h != (value >> 8)) {
		emit q->do58Changed();
	}
}

void FavoriteAttributesPrivate::r31(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do59();
	quint16 h = q->do60();
	if (m_vm.at(31) != value) {
		m_vm[31] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do59Changed();
	}
	if (h != (value >> 8)) {
		emit q->do60Changed();
	}
}

void FavoriteAttributesPrivate::r32(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do61();
	quint16 h = q->do62();
	if (m_vm.at(32) != value) {
		m_vm[32] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do61Changed();
	}
	if (h != (value >> 8)) {
		emit q->do62Changed();
	}
}

void FavoriteAttributesPrivate::r33(quint16 value) {
	Q_Q(FavoriteAttributes);
	quint16 l = q->do63();
	quint16 h = q->do64();
	if (m_vm.at(33) != value) {
		m_vm[33] = value;
	}
	if (l != (value & 0x00ff)) {
		emit q->do63Changed();
	}
	if (h != (value >> 8)) {
		emit q->do64Changed();
	}
}

void FavoriteAttributesPrivate::r50(quint16 value) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(50) != value) {
		m_vm[50] = value;
		emit q->ai1Changed();
	}
}

void FavoriteAttributesPrivate::r51(quint16 value) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(51) != value) {
		m_vm[51] = value;
		emit q->ai2Changed();
	}
}

void FavoriteAttributesPrivate::r52(quint16 value) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(52) != value) {
		m_vm[52] = value;
		emit q->ai3Changed();
	}
}

void FavoriteAttributesPrivate::r53(quint16 value) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(53) != value) {
		m_vm[53] = value;
		emit q->ai4Changed();
	}
}

void FavoriteAttributesPrivate::r54(quint16 value) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(54) != value) {
		m_vm[54] = value;
		emit q->ai5Changed();
	}
}

void FavoriteAttributesPrivate::r55(quint16 value) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(55) != value) {
		m_vm[55] = value;
		emit q->ai6Changed();
	}
}

void FavoriteAttributesPrivate::r56(quint16 value) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(56) != value) {
		m_vm[56] = value;
		emit q->ai7Changed();
	}
}

void FavoriteAttributesPrivate::r57(quint16 value) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(57) != value) {
		m_vm[57] = value;
		emit q->ai8Changed();
	}
}

void FavoriteAttributesPrivate::r58(quint16 value) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(58) != value) {
		m_vm[58] = value;
		emit q->ai9Changed();
		emit q->headChanged();
	}
}

void FavoriteAttributesPrivate::r59(quint16 value) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(59) != value) {
		m_vm[59] = value;
		emit q->ai10Changed();
	}
}

void FavoriteAttributesPrivate::r60(quint16 value) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(60) != value) {
		m_vm[60] = value;
		emit q->ai11Changed();
	}
}

void FavoriteAttributesPrivate::r61(quint16 value) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(61) != value) {
		m_vm[61] = value;
		emit q->ai12Changed();
	}
}

void FavoriteAttributesPrivate::r62(quint16 value) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(62) != value) {
		m_vm[62] = value;
		emit q->ai13Changed();
	}
}

void FavoriteAttributesPrivate::r63(quint16 value) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(63) != value) {
		m_vm[63] = value;
		emit q->ai14Changed();
	}
}

void FavoriteAttributesPrivate::r64(quint16 value) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(64) != value) {
		m_vm[64] = value;
		emit q->ai15Changed();
	}
}

void FavoriteAttributesPrivate::r65(quint16 value) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(65) != value) {
		m_vm[65] = value;
		emit q->ai16Changed();
	}
}

void FavoriteAttributesPrivate::r66(quint16 value) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(66) != value) {
		m_vm[66] = value;
		emit q->diChanged();
	}
}

void FavoriteAttributesPrivate::r70(QList<quint16> values) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(70) != values[0]
		|| m_vm.at(71) != values[1]) {
		m_vm[70] = values[0];
		m_vm[71] = values[1];
		emit q->enc1Changed();
	}
}

void FavoriteAttributesPrivate::r72(QList<quint16> values) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(72) != values[0]
		|| m_vm.at(73) != values[1]) {
		m_vm[72] = values[0];
		m_vm[73] = values[1];
		emit q->enc2Changed();
	}
}

void FavoriteAttributesPrivate::r74(QList<quint16> values) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(74) != values[0]
		|| m_vm.at(75) != values[1]) {
		m_vm[74] = values[0];
		m_vm[75] = values[1];
		emit q->enc3Changed();
	}
}

void FavoriteAttributesPrivate::r108(quint16 value) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(108) != value) {
		std::bitset<16> bits (value);
		std::bitset<16> old(m_vm.at(108));
		m_vm[108] = value;
		if (old.test(0) != bits.test(0)) {
			emit q->backHasDrillChanged();
		}
		if (old.test(1) != bits.test(1)) {
			emit q->middeHasDrillChanged();
		}
		if (old.test(2) != bits.test(2)) {
			emit q->frontHasDrillChanged();
		}
	}
}

void FavoriteAttributesPrivate::r109(QList<quint16> values) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(109) != values[0]
		|| m_vm.at(110) != values[1]) {
		m_vm[109] = values[0];
		m_vm[110] = values[1];
		emit q->enc1L1Changed();
	}
}

void FavoriteAttributesPrivate::r121(QList<quint16> values) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(121) != values[0]
		|| m_vm.at(122) != values[1]) {
		m_vm[121] = values[0];
		m_vm[122] = values[1];
		emit q->enc1L7Changed();
	}
}

void FavoriteAttributesPrivate::r125(quint16 value) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(125) != value) {
		m_vm[125] = value;
		emit q->headMinChanged();
	}
}

void FavoriteAttributesPrivate::r126(quint16 value) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(126) != value) {
		m_vm[126] = value;
		emit q->headMaxChanged();
	}
}

void FavoriteAttributesPrivate::r166(quint16 value) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(166) != value) {
		m_vm[166] = value;
		emit q->pumpRunningChanged();
	}
}

void FavoriteAttributesPrivate::r201(QList<quint16> values) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(201) != values[0] || m_vm.at(202) != values[1]) {
		m_vm[201] = values[0];
		m_vm[202] = values[1];
	}
}

void FavoriteAttributesPrivate::r203(QList<quint16> values) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(203) != values[0] || m_vm.at(204) != values[1]) {
		m_vm[203] = values[0];
		m_vm[204] = values[1];
	}
}

void FavoriteAttributesPrivate::r205(QList<quint16> values) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(205) != values[0] || m_vm.at(206) != values[1]) {
		m_vm[205] = values[0];
		m_vm[206] = values[1];
	}
}

void FavoriteAttributesPrivate::r207(QList<quint16> values) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(207) != values[0] || m_vm.at(208) != values[1]) {
		m_vm[207] = values[0];
		m_vm[208] = values[1];
	}
}

void FavoriteAttributesPrivate::r223(QList<quint16> values) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(223) != values[0] || m_vm.at(224) != values[1]) {
		m_vm[223] = values[0];
		m_vm[224] = values[1];
	}
}

void FavoriteAttributesPrivate::r225(QList<quint16> values) {
	Q_Q(FavoriteAttributes);
	if (m_vm.at(225) != values[0] || m_vm.at(226) != values[1]) {
		m_vm[225] = values[0];
		m_vm[226] = values[1];
	}
}
